package com.hyh.model.pizzastore;

import com.hyh.model.pizza.Pizza;

public abstract class PizzaStore {

	public enum PIZZA_STYLE{
		Cheese,
		Clam
	}
	public void orderPizza(PIZZA_STYLE pizzaStyle){
		Pizza pizza = createPizza(pizzaStyle);
		pizza.prepare();
		pizza.bake();
		pizza.cut();
		pizza.box();
	}
	
	protected abstract Pizza createPizza(PIZZA_STYLE pizzaStyle);
}
